package interface_;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class InterfaceDetail02 {
    public static void main(String[] args) {
        System.out.println(InterfaceDetail02A.n1);//说明n1是static
        //InterfaceDetail02A.n1 = 30//说明是final
    }
}
interface InterfaceDetail02A{
    /**
     * 接口中的属性，只能是final的，并且是public static final修饰符
     * int n1 = 10,等价于 public static final int n1 = 10;
     */
    public int n1 = 10;
    void hiA();
}
interface  InterfaceDetail02B{
    void hiB();
}
class InterfaceDetail02C implements InterfaceDetail02A,InterfaceDetail02B{
    public void hiA() {

    }
    public void hiB() {

    }
}
